//
//  BaseModel.m
//  ZhiHui
//
//  Created by qskj-ios on 2018/5/11.
//  Copyright © 2018年 com.qiansheng. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

- (instancetype)initWithDict:(NSDictionary *)dict {
    self = [super init];
    if (self) {
        
    }
    return self;
}

- (NSString *)changeTime:(NSString *)timeStampString {
    NSDateFormatter *stampFormatter = [[NSDateFormatter alloc] init];
    [stampFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
    NSDate *stampDate = [NSDate dateWithTimeIntervalSince1970:[timeStampString doubleValue]];
    NSString *dateString = [stampFormatter stringFromDate:stampDate];
    return dateString;
}

@end
